<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Phuongthucthanhtoan_model extends CI_Model {


	var $mapt='';
	var $tenphuongthuc='';	
	
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
		$this->load->database();
    }
	 
	function insert($data)
    {
       return $this->db->insert('phuongthucthanhtoan', $data);
    }
	function getresult()
	{
		 $this->db->select("mapt,tenphuongthuc");
         $query=$this->db->get("phuongthucthanhtoan");
       	return $query->result_array();
	 }
}

?>